import{_ as e}from"./_tslib-BJsnFhs2.mjs";import{_decorator as t,Component as n,Label as i}from"cc";import{playable as o}from"./Playable.mjs";import"cc/env";import"./EventSystemObject.mjs";import"./EventSystem.mjs";import"./WebAudioManager.mjs";const{ccclass:s,property:r,disallowMultiple:l}=t;let c=class extends n{constructor(){super(...arguments),this.induceKeyText=""}onEnable(){this.updateInduceLabel()}onUpdateInduceLabelCondition(){return!0}updateInduceLabel(){var e;if(!o.isInduce||!this.onUpdateInduceLabelCondition())return;let t=null!==(e=this.getComponent(i))&&void 0!==e?e:this.getComponentInChildren(i);null==t||String.isEmptyOrNull(this.induceKeyText)||(t.string=this.induceKeyText,t.updateStyle())}};e([r],c.prototype,"induceKeyText",void 0),c=e([s("InduceAction"),l],c);export{c as InduceAction};
